{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\k1801607\Dropbox\New_politicization\RR_PSRM_replica\session_output.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}30 Jun 2019, 11:24:39
{txt}
{com}. 
. 
. clear all
{res}{txt}
{com}. use data.dta 
{txt}
{com}. 
. 
. *********************************************************************************************
. *                     Table 1
. *********************************************************************************************
. 
. * % Social democratic Parties
. 
. *Voters (first row)
. 
. tabstat PS, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:PS} {...}
{c |}{...}
     {res} .251
{txt}{hline 13}{c BT}{hline 10}

{com}. *Abstainers (CEM) (second row) // three entries for three columns (basic, augmented, full)
. tabstat PScem_basic PScem_augmented PScem_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  PScem_~c  PScem_~d  PScem~ll
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .257      .262      .268
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat PSlogit_basic PSlogit_augmented PSlogit_full, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  PSlogi..  PSlogi..  P~t_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res}  .26      .264      .258
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit+) (fouth row)
. tabstat PSlogitplus_basic PSlogitplus_augmented PSlogitplus_full, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  PSlogi..  PSlogi..  P~s_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .258       .26      .262
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. * % Extreme left Parties
. 
. *Voters (first row)
. tabstat left, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:left} {...}
{c |}{...}
     {res} .055
{txt}{hline 13}{c BT}{hline 10}

{com}. 
. *Abstainers (CEM) (second row)  
. tabstat leftcem_basic leftcem_augmented  leftcem_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  leftce~c  leftce~d  leftc~ll
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .049      .047      .042
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat leftlogit_basic leftlogit_augmented leftlogit_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  leftlo..  leftlo..  l~t_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .068      .073      .067
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit+) (fouth row)
. tabstat leftlogitplus_basic leftlogitplus_augmented leftlogitplus_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  leftlo..  leftlo..  l~s_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .066      .068      .057
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. * % Green Parties
. 
. *Voters (first row)
. 
. tabstat green, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:green} {...}
{c |}{...}
     {res} .055
{txt}{hline 13}{c BT}{hline 10}

{com}. 
. *Abstainers (CEM) (second row)  
. tabstat greencem_basic  greencem_augmented greencem_full , s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  greenc~c  greenc~d  g~m_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res}  .05      .049      .042
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat greenlogit_basic  greenlogit_augmented greenlogit_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  greenl..  greenl..  g~t_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .063      .064       .06
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit+) (fouth row)
. tabstat greenlogitplus_basic greenlogitplus_augmented greenlogitplus_full, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  greenl..  greenl..  g~s_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .061      .061      .053
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. *%Turnout
. 
. *Sample turnout
. tabstat voting, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:voting} {...}
{c |}{...}
     {res} .801
{txt}{hline 13}{c BT}{hline 10}

{com}. *Compulsory (CEM)
. tabstat turnout_basic turnout_augmented turnout_full, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  turnou~c  turnou~d  turno~ll
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .964      .924      .883
{txt}{hline 9}{c BT}{hline 30}

{com}. *Compulsory (logit)
. tabstat turnout_logit turnout_logit turnout_logit, s(mean) format(%5.0g)   

{txt}   stats {...}
{c |}{...}
  turno~it  turno~it  turno~it
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res}    1         1         1
{txt}{hline 9}{c BT}{hline 30}

{com}. *Compulsory (logit +)
. tabstat turnout_basic turnout_augmented turnout_full, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  turnou~c  turnou~d  turno~ll
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .964      .924      .883
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. 
. *****************************************************************************************************************
. *                                Figure 1 
. *****************************************************************************************************************
. 
. 
. quietly summarize education
{txt}
{com}. local mean: display %6.2f r(mean)
{res}{txt}
{com}. local edusd: display %6.2f r(sd)
{res}{txt}
{com}. local edumin: display %6.2f r(min)
{res}{txt}
{com}. local edumax: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize education if cem_basic==1
{txt}
{com}. local edu2mean : display %6.2f r(mean)
{res}{txt}
{com}. local edu2sd: display %6.2f r(sd)
{res}{txt}
{com}. local edu2min: display %6.2f r(min)
{res}{txt}
{com}. local edu2max: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize education if cem_augmented==1
{txt}
{com}. local edu3mean : display %6.2f r(mean)
{res}{txt}
{com}. local edu3sd: display %6.2f r(sd)
{res}{txt}
{com}. local edu3min: display %6.2f r(min)
{res}{txt}
{com}. local edu3max: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize education if cem_full==1
{txt}
{com}. local edu4mean : display %6.2f r(mean)
{res}{txt}
{com}. local edu4sd: display %6.2f r(sd)
{res}{txt}
{com}. local edu4min: display %6.2f r(min)
{res}{txt}
{com}. local edu4max: display %6.2f r(max)
{res}{txt}
{com}. twoway  (function y=normalden(x, `edu4mean', `edu4sd') , range(`edu4min' `edu4max')  lwidth(medthick) lcolor(black)  lpattern(dot) ) (function y=normalden(x, `edu3mean', `edu3sd') , range(`edu3min' `edu3max') lwidth(medthick) lcolor(black) lpattern(shortdash)) (function y=normalden(x, `edu2mean', `edu2sd') , range(`edu2min' `edu2max') lcolor(black)  lwidth(medthick) lpattern(longdash)) (function y=normalden(x, `mean', `edusd') , range(`edumin' `edumax')  lwidth(medthick) lcolor(black) ) ,  xtitle("") xlabel(0(1)4, labsize(small)) legend(off) ytitle("") ylabel(0(.1).3, angle(horizontal) labsize(vsmall) format(%3.2f)) saving(a1.gpg, replace)  
{res}{txt}(file a1.gpg saved)

{com}. 
. quietly summarize y
{txt}
{com}. local ymean: display %6.2f r(mean)
{res}{txt}
{com}. local ysd: display %6.2f r(sd)
{res}{txt}
{com}. local ymin: display %6.2f r(min)
{res}{txt}
{com}. local ymax: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize y if cem_basic==1
{txt}
{com}. local y2mean : display %6.2f r(mean)
{res}{txt}
{com}. local y2sd: display %6.2f r(sd)
{res}{txt}
{com}. local y2min: display %6.2f r(min)
{res}{txt}
{com}. local y2max: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize y if cem_augmented==1
{txt}
{com}. local y3mean : display %6.2f r(mean)
{res}{txt}
{com}. local y3sd: display %6.2f r(sd)
{res}{txt}
{com}. local y3min: display %6.2f r(min)
{res}{txt}
{com}. local y3max: display %6.2f r(max)
{res}{txt}
{com}. quietly summarize y if cem_full==1
{txt}
{com}. local y4mean : display %6.2f r(mean)
{res}{txt}
{com}. local y4sd: display %6.2f r(sd)
{res}{txt}
{com}. local y4min: display %6.2f r(min)
{res}{txt}
{com}. local y4max: display %6.2f r(max)
{res}{txt}
{com}. twoway  (function y=normalden(x, `y4mean', `y4sd') , range(`y4min' `y4max') lwidth(medthick) lcolor(black)  lpattern(dot)) (function y=normalden(x, `y3mean', `y3sd') , range(`y3min' `y3max')  lwidth(medthick) lcolor(black) lpattern(shortdash)) (function y=normalden(x, `y2mean', `y2sd') , range(`y2min' `y2max')  lwidth(medthick) lcolor(black) lpattern(longdash)) (function y=normalden(x, `ymean', `ysd') , range(`ymin' `ymax')  lwidth(medthick) lcolor(black) ) , xtitle("") xlabel(1(1)4, labsize(small)) legend(off) ytitle("") ylabel(0(.2).6, angle(horizontal) labsize(vsmall) format(%3.2f))  saving(a2.gpg, replace)
{res}{txt}(file a2.gpg saved)

{com}. 
. *********************************************************************************************
. *                     Table A1
. *********************************************************************************************
. 
.  
.  *for "1st election"   (columns 1 to 4)
.  
. *columns: "Year"  "N. obs"  "Real"  "Sample"
. tabstat      e_year   Nobs      real     voting   if election_dummy==1, s(mean)  format(%10.3g) by(country) nototal

{txt}Summary statistics: mean
  by categories of: country (Country)

{ralign 7:country} {...}
{c |}{...}
    e_year      Nobs      real    voting
{hline 8}{c +}{hline 40}
{ralign 7:AT} {...}
{c |}{...}
{res}      2008      2115      .788      .766
{txt}{ralign 7:BE} {...}
{c |}{...}
{res}      2007      1560      .893      .919
{txt}{ralign 7:DE} {...}
{c |}{...}
{res}      2009      2734      .708       .81
{txt}{ralign 7:DK} {...}
{c |}{...}
{res}      2007      1506      .865      .942
{txt}{ralign 7:ES} {...}
{c |}{...}
{res}      2008      2295      .739      .803
{txt}{ralign 7:FI} {...}
{c |}{...}
{res}      2007      2034      .679      .788
{txt}{ralign 7:FR} {...}
{c |}{...}
{res}      2007      1867      .602      .766
{txt}{ralign 7:GB} {...}
{c |}{...}
{res}      2005      2275      .614       .72
{txt}{ralign 7:GR} {...}
{c |}{...}
{res}      2007      1947      .741      .869
{txt}{ralign 7:IE} {...}
{c |}{...}
{res}      2007      1633       .67      .795
{txt}{ralign 7:IT} {...}
{c |}{...}
{res}      2001      1159      .814      .889
{txt}{ralign 7:LU} {...}
{c |}{...}
{res}      1999      1249      .865      .673
{txt}{ralign 7:NL} {...}
{c |}{...}
{res}      2010      1761      .747      .832
{txt}{ralign 7:PT} {...}
{c |}{...}
{res}      2009      2053      .597      .742
{txt}{ralign 7:SE} {...}
{c |}{...}
{res}      2010      1894      .846      .908
{txt}{hline 8}{c BT}{hline 40}

{com}.  *for "2nd election"   (columns 5 to 8)
. tabstat      e_year   Nobs      real      voting  if election_dummy==2, s(mean)  format(%10.3g) by(country) nototal

{txt}Summary statistics: mean
  by categories of: country (Country)

{ralign 7:country} {...}
{c |}{...}
    e_year      Nobs      real    voting
{hline 8}{c +}{hline 40}
{ralign 7:AT} {...}
{c |}{...}
{res}      2013      1678      .749      .768
{txt}{ralign 7:BE} {...}
{c |}{...}
{res}      2014      1585      .885      .903
{txt}{ralign 7:DE} {...}
{c |}{...}
{res}      2013      2813      .715      .833
{txt}{ralign 7:DK} {...}
{c |}{...}
{res}      2011      1498      .877      .938
{txt}{ralign 7:ES} {...}
{c |}{...}
{res}      2011      1782      .689      .755
{txt}{ralign 7:FI} {...}
{c |}{...}
{res}      2011      2044      .704      .845
{txt}{ralign 7:FR} {...}
{c |}{...}
{res}      2012      1707      .572      .679
{txt}{ralign 7:GB} {...}
{c |}{...}
{res}      2010      2324      .651      .719
{txt}{ralign 7:GR} {...}
{c |}{...}
{res}      2009      2528      .709      .784
{txt}{ralign 7:IE} {...}
{c |}{...}
{res}      2011      2462        .7      .738
{txt}{ralign 7:IT} {...}
{c |}{...}
{res}      2013       933      .752      .795
{txt}{ralign 7:LU} {...}
{c |}{...}
{res}      2004      1384      .914      .759
{txt}{ralign 7:NL} {...}
{c |}{...}
{res}      2012      1785      .743      .835
{txt}{ralign 7:PT} {...}
{c |}{...}
{res}      2011      2010      .581      .682
{txt}{ralign 7:SE} {...}
{c |}{...}
{res}      2014      1677      .858      .915
{txt}{hline 8}{c BT}{hline 40}

{com}. 
. *********************************************************************************************
. *                    Table A2
. *********************************************************************************************
. 
. eststo voters: quietly estpost summarize ///
>     education agea  female bebe   minority  y uemp3m  wage pension self others  polintr if voting==1
{txt}
{com}. eststo abstainers: quietly estpost summarize ///
>     education agea  female bebe   minority  y uemp3m  wage pension self others   polintr if voting==0
{txt}
{com}.         esttab  voters abstainers, ///
>         cells("count mean(fmt ( %9.2f))  sd(fmt ( %9.2f))")  nodepvar  ///
> label
{res}
{txt}{hline 98}
{txt}                              (1)                                    (2)                          
{txt}                           voters                             abstainers                          
{txt}                            count         mean           sd        count         mean           sd
{txt}{hline 98}
{txt}education           {res}        44703         2.09         1.40        11020         1.69         1.31{txt}
{txt}Age of respondent,~d{res}        44798        51.62        17.34        11097        43.86        18.83{txt}
{txt}Gender              {res}        44888         1.53         0.50        11135         1.55         0.50{txt}
{txt}Children living at~t{res}        44871         1.63         0.48        11122         1.65         0.48{txt}
{txt}Belong to minority~ {res}        44598         1.97         0.16        10975         1.94         0.24{txt}
{txt}Feeling about hous~e{res}        44664         1.88         0.83        10984         2.19         0.88{txt}
{txt}Ever unemployed an~k{res}        44736         1.74         0.44        11062         1.65         0.48{txt}
{txt}wage                {res}        44900         0.54         0.50        11137         0.57         0.49{txt}
{txt}pension             {res}        44900         0.28         0.45        11137         0.20         0.40{txt}
{txt}self                {res}        44900         0.05         0.21        11137         0.11         0.32{txt}
{txt}others              {res}        44426         0.00         0.00        10918         0.00         0.00{txt}
{txt}How interested in ~s{res}        44796         2.44         0.91        11081         3.01         0.89{txt}
{txt}{hline 98}
{txt}Observations        {res}        44900                                  11137                          {txt}
{txt}{hline 98}

{com}. 
. ********************************************************************************************* 
. *                     Table A4
. *********************************************************************************************
. 
. 
. *SOCIAL DEMOCRATIC PARTIES
. 
. *Basic
. quietly: ttest PS, by(cem_basic) welch
{txt}
{com}.  display as text "Matched-Unmatched (basic)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (basic)= {res}.01773502
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00429717
{txt}
{com}. *Augmented 
. quietly: ttest PS, by(cem_augmented) welch
{txt}
{com}.  display as text "Matched-Unmatched (augmented)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (augmented)= {res}.01850583
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00416039
{txt}
{com}.  *Full
. quietly: ttest PS, by(cem_full) welch
{txt}
{com}.  display as text "Matched-Unmatched (full)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (full)= {res}.02232094
{txt}
{com}.  display as text "Standard error= " as result   r(se)  
{res}{txt}Standard error= {res}.0050728
{txt}
{com}. 
.  
. *EXTREME LEFT PARTIES
. 
. *Basic
. quietly: ttest left, by(cem_basic) welch
{txt}
{com}.  display as text "Matched-Unmatched (basic)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (basic)= {res}-.01867992
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00240102
{txt}
{com}. *Augmented 
. quietly: ttest left, by(cem_augmented) welch
{txt}
{com}.  display as text "Matched-Unmatched (augmented)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (augmented)= {res}-.01383974
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00214586
{txt}
{com}.  *Full
. quietly: ttest left, by(cem_full) welch
{txt}
{com}.  display as text "Matched-Unmatched (full)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (full)= {res}-.01746786
{txt}
{com}.  display as text "Standard error= " as result   r(se)  
{res}{txt}Standard error= {res}.00239729
{txt}
{com}. 
.  
. *GREEN PARTIES
. 
. *Basic
. quietly: ttest green, by(cem_basic) welch
{txt}
{com}.  display as text "Matched-Unmatched (basic)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (basic)= {res}-.01535221
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00237945
{txt}
{com}. *Augmented 
. quietly: ttest green, by(cem_augmented) welch
{txt}
{com}.  display as text "Matched-Unmatched (augmented)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (augmented)= {res}-.0117276
{txt}
{com}.  display as text "Standard error= " as result   r(se)   
{res}{txt}Standard error= {res}.00215046
{txt}
{com}.  *Full
. quietly: ttest green, by(cem_full) welch
{txt}
{com}.  display as text "Matched-Unmatched (full)= " as result   r(mu_2) - r(mu_1)    
{res}{txt}Matched-Unmatched (full)= {res}-.0167958
{txt}
{com}.  display as text "Standard error= " as result   r(se)  
{res}{txt}Standard error= {res}.00240427
{txt}
{com}. 
. ******************************************************************************
. *                                     Figure A5
. ******************************************************************************
. 
. 
. hist PSmean1 if id_strat_basic==1, fraction  ytitle("") ylabel(0(.1).6, angle(horizontal) labsize(vsmall) format(%3.2f))  xtitle("Basic specification") saving(g1, replace)
{txt}(bin={res}35{txt}, start={res}0{txt}, width={res}.02857143{txt})
{res}{txt}(file g1.gph saved)

{com}. hist PSmean2 if id_strat_augmented==1, fraction ytitle("")  ylabel(0(.1).6, angle(horizontal) labsize(vsmall) format(%3.2f))   xtitle("Augmented specification")  saving(g2, replace)
{txt}(bin={res}35{txt}, start={res}0{txt}, width={res}.02857143{txt})
{res}{txt}(file g2.gph saved)

{com}. hist PSmean3 if id_strat_full==1, fraction  ytitle("")   ylabel(0(.1).6, angle(horizontal) labsize(vsmall) format(%3.2f))   xtitle("Full specification")  saving(g3, replace)
{txt}(bin={res}35{txt}, start={res}0{txt}, width={res}.02857143{txt})
{res}{txt}(file g3.gph saved)

{com}. 
. 
. 
. *********************************************************************************************
. *                             Table A6
. *********************************************************************************************
. 
. 
. *Test group complete random 
. tabstat      real_PSa CEM_PSa      logit_PSa     logitplus_PSa  quadratic_PSa,  format(%10.3g)   

{txt}   stats {...}
{c |}{...}
  real_PSa   CEM_PSa  lo~t_PSa  lo~s_PSa  quadr~Sa
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}      .237      .272      .255      .255      .255
{txt}{hline 9}{c BT}{hline 50}

{com}. tabstat      real_lefta  CEM_lefta      logit_lefta      logitplus_lefta quadratic_lefta ,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  real_l~a  CEM_le~a  ~t_lefta  ~s_lefta  quadr~ta
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}      .059      .049      .077      .077      .077
{txt}{hline 9}{c BT}{hline 50}

{com}. tabstat      real_greena   CEM_greena      logit_greena    logitplus_greena  quadratic_greena,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  real_g~a  CEM_gr~a  logit_..  logitp..  quadr~na
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}      .055      .042      .066      .066      .066
{txt}{hline 9}{c BT}{hline 50}

{com}. 
. *Test group random within low SES
. tabstat      real_PS   CEM_PS      logit_PS     logitplus_PS  quadratic_PS,  format(%10.3g)   

{txt}   stats {...}
{c |}{...}
   real_PS    CEM_PS  logit_PS  logitp~S  quadra~S
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}       .28      .298      .291      .289      .282
{txt}{hline 9}{c BT}{hline 50}

{com}. tabstat      real_leftb  CEM_left      logit_left      logitplus_left  quadratic_left ,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  real_l~b  CEM_left  logit_~t  logitp~t  quadra~t
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}      .063      .045      .092      .093      .086
{txt}{hline 9}{c BT}{hline 50}

{com}. tabstat      real_greenb   CEM_green      logit_green    logitplus_green  quadratic_green,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  real_g~b  CEM_gr~n  logit_~n  logitp~n  quadra~n
{hline 9}{c +}{hline 50}
{ralign 8:mean} {...}
{c |}{...}
{res}      .038      .022      .042      .046      .042
{txt}{hline 9}{c BT}{hline 50}

{com}. 
. *********************************************************************************************
. *                                Table A7
. *********************************************************************************************
. 
. * % Social democratic Parties
. 
. *Voters (first row)
. 
. tabstat PS, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:PS} {...}
{c |}{...}
     {res} .251
{txt}{hline 13}{c BT}{hline 10}

{com}. *Abstainers (CEM) (second row) // three entries for three columns (basic, augmented, full)
. tabstat PScem_social PScem_trust PScem_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  PScem~al  PScem_~t  PScem_~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .257      .282      .264
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat PSlogit_social PSlogit_trust PSlogit_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  PSlog~al  PSlogi~t  PSlogi~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .258      .255      .273
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. * % Extreme left Parties
. 
. *Voters (first row)
. tabstat left, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:left} {...}
{c |}{...}
     {res} .055
{txt}{hline 13}{c BT}{hline 10}

{com}. 
. *Abstainers (CEM) (second row) // three entries for three columns (basic, augmented, full)
. tabstat leftcem_social leftcem_trust leftcem_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  leftc~al  leftce~t  leftce~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .038      .045      .022
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat leftlogit_social leftlogit_trust leftlogit_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  leftl~al  leftlo~t  leftlo~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .068      .071      .079
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. *Green Parties
. 
. *Voters (first row)
. 
. tabstat green, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:green} {...}
{c |}{...}
     {res} .055
{txt}{hline 13}{c BT}{hline 10}

{com}. 
. *Abstainers (CEM) (second row) // three entries for three columns (basic, augmented, full)
. tabstat greencem_social greencem_trust greencem_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  greenc..  greenc~t  greenc~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .039      .039      .029
{txt}{hline 9}{c BT}{hline 30}

{com}. *Abstainers (logit) (third row)
. tabstat greenlogit_social greenlogit_trust greenlogit_ideology, s(mean)  format(%5.0g)

{txt}   stats {...}
{c |}{...}
  greenl..  greenl~t  greenl~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res}  .06      .061      .066
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. *%Turnout
. 
. *Sample turnout
. tabstat voting, s(mean)  format(%5.0g)

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:voting} {...}
{c |}{...}
     {res} .801
{txt}{hline 13}{c BT}{hline 10}

{com}. *Compulsory (CEM)
. tabstat turnout_social turnout_trust turnout_ideology, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  turno~al  turno~st  turnou~y
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res} .848      .831      .834
{txt}{hline 9}{c BT}{hline 30}

{com}. *Compulsory (logit)
. tabstat turnout_logit turnout_logit turnout_logit, s(mean) format(%5.0g)

{txt}   stats {...}
{c |}{...}
  turno~it  turno~it  turno~it
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
     {res}    1         1         1
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. *********************************************************************************************
. *                              Table A8
. *********************************************************************************************
. 
. 
. 
. *****Social democratic parties
. tabstat    PS ,  format(%10.3g)   

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:PS} {...}
{c |}{...}
{res}      .251
{txt}{hline 13}{c BT}{hline 10}

{com}. tabstat    PSkernel_basic  PSkernel_augmented PSkernel_full,  format(%10.3g) 

{txt}   stats {...}
{c |}{...}
  PSkern..  PSkern..  P~l_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}      .268       .27      .264
{txt}{hline 9}{c BT}{hline 30}

{com}. tabstat    PSkernel_reg_basic  PSkernel_reg_augmented PSkernel_reg_full,  format(%10.3g)   

{txt}   stats {...}
{c |}{...}
  PSkern..  PSkern..  P~g_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}       .25      .248      .246
{txt}{hline 9}{c BT}{hline 30}

{com}.   
. *****Extreme left parties 
. tabstat    left ,  format(%10.2g)   

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:left} {...}
{c |}{...}
{res}      .055
{txt}{hline 13}{c BT}{hline 10}

{com}. tabstat    leftkernel_basic  leftkernel_augmented leftkernel_full,  format(%10.2g) 

{txt}   stats {...}
{c |}{...}
  leftke..  leftke..  l~l_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}      .064      .068      .045
{txt}{hline 9}{c BT}{hline 30}

{com}. tabstat    leftkernel_reg_basic  leftkernel_reg_augmented leftkernel_reg_full,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  leftke..  leftke..  l~g_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}      .058      .058      .057
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. *****Green parties
. tabstat    green ,  format(%10.2g)   

{txt}{ralign 12:variable} {...}
{c |}      mean
{hline 13}{c +}{hline 10}
{ralign 12:green} {...}
{c |}{...}
{res}      .055
{txt}{hline 13}{c BT}{hline 10}

{com}. tabstat    greenkernel_basic  greenkernel_augmented greenkernel_full,  format(%10.2g) 

{txt}   stats {...}
{c |}{...}
  greenk..  greenk..  g~l_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}      .054      .056      .045
{txt}{hline 9}{c BT}{hline 30}

{com}. tabstat    greenkernel_reg_basic  greenkernel_reg_augmented greenkernel_reg_full,  format(%10.2g)   

{txt}   stats {...}
{c |}{...}
  greenk..  greenk..  g~g_full
{hline 9}{c +}{hline 30}
{ralign 8:mean} {...}
{c |}{...}
{res}      .057      .057      .056
{txt}{hline 9}{c BT}{hline 30}

{com}. 
. 
. *********************************************************************************************
. *                            Table A10
. *********************************************************************************************
. 
.                            *Left parties                                                  |                           Incumbent parties
.                                                    
. *               "Year"  "Real"         "Matching           "Logit"               |     "Real"                "Matching              "Logit"       
. tabstat     e_year   real_left    all_leftcem_full all_leftlogit_full      real_incumbent   incumbentcem_full  incumbentlogit_full  if election_dummy==1, s(mean)  format(%10.3g) by(country) nototal  labelwidth(16)

{txt}Summary statistics: mean
  by categories of: country (Country)

{ralign 7:country} {...}
{c |}{...}
    e_year  real_l~t  a~m_full  a~t_full  real_i~t  i~m_full  i~logi~l
{hline 8}{c +}{hline 70}
{ralign 7:AT} {...}
{c |}{...}
{res}      2008      .397      .376      .406      .552      .484      .459
{txt}{ralign 7:BE} {...}
{c |}{...}
{res}      2007      .302      .383      .378      .454      .452      .424
{txt}{ralign 7:DE} {...}
{c |}{...}
{res}      2009      .456      .409       .45      .723      .529       .48
{txt}{ralign 7:DK} {...}
{c |}{...}
{res}      2007      .407      .422      .421      .366      .353      .337
{txt}{ralign 7:ES} {...}
{c |}{...}
{res}      2008      .482      .438      .435      .444      .419      .401
{txt}{ralign 7:FI} {...}
{c |}{...}
{res}      2007      .387      .333      .344      .491      .424      .401
{txt}{ralign 7:FR} {...}
{c |}{...}
{res}      2007      .292      .344      .403      .459      .298      .267
{txt}{ralign 7:GB} {...}
{c |}{...}
{res}      2005      .352      .398      .399      .352      .398      .371
{txt}{ralign 7:GR} {...}
{c |}{...}
{res}      2007      .513      .467      .472      .418      .258      .224
{txt}{ralign 7:IE} {...}
{c |}{...}
{res}      2007      .148      .104      .122      .443       .43       .37
{txt}{ralign 7:IT} {...}
{c |}{...}
{res}      2001      .254      .188      .221      .349      .225      .269
{txt}{ralign 7:LU} {...}
{c |}{...}
{res}      1999      .366      .237      .272      .535      .446      .442
{txt}{ralign 7:NL} {...}
{c |}{...}
{res}      2010      .361      .284      .354      .411      .401       .32
{txt}{ralign 7:PT} {...}
{c |}{...}
{res}      2009      .479      .349      .324      .377       .33       .27
{txt}{ralign 7:SE} {...}
{c |}{...}
{res}      2010      .436      .344      .388      .493      .486       .45
{txt}{hline 8}{c BT}{hline 70}

{com}.  *for "2nd election"   (columns 5 to 8)
.  *               "Year"  "Real"         "Matching           "Logit"              |     "Real"                "Matching              "Logit"       
. tabstat     e_year   real_left    all_leftcem_full all_leftlogit_full      real_incumbent   incumbentcem_full  incumbentlogit_full  if election_dummy==1, s(mean)  format(%10.3g) by(country) nototal

{txt}Summary statistics: mean
  by categories of: country (Country)

{ralign 7:country} {...}
{c |}{...}
    e_year  real_l~t  a~m_full  a~t_full  real_i~t  i~m_full  i~logi~l
{hline 8}{c +}{hline 70}
{ralign 7:AT} {...}
{c |}{...}
{res}      2008      .397      .376      .406      .552      .484      .459
{txt}{ralign 7:BE} {...}
{c |}{...}
{res}      2007      .302      .383      .378      .454      .452      .424
{txt}{ralign 7:DE} {...}
{c |}{...}
{res}      2009      .456      .409       .45      .723      .529       .48
{txt}{ralign 7:DK} {...}
{c |}{...}
{res}      2007      .407      .422      .421      .366      .353      .337
{txt}{ralign 7:ES} {...}
{c |}{...}
{res}      2008      .482      .438      .435      .444      .419      .401
{txt}{ralign 7:FI} {...}
{c |}{...}
{res}      2007      .387      .333      .344      .491      .424      .401
{txt}{ralign 7:FR} {...}
{c |}{...}
{res}      2007      .292      .344      .403      .459      .298      .267
{txt}{ralign 7:GB} {...}
{c |}{...}
{res}      2005      .352      .398      .399      .352      .398      .371
{txt}{ralign 7:GR} {...}
{c |}{...}
{res}      2007      .513      .467      .472      .418      .258      .224
{txt}{ralign 7:IE} {...}
{c |}{...}
{res}      2007      .148      .104      .122      .443       .43       .37
{txt}{ralign 7:IT} {...}
{c |}{...}
{res}      2001      .254      .188      .221      .349      .225      .269
{txt}{ralign 7:LU} {...}
{c |}{...}
{res}      1999      .366      .237      .272      .535      .446      .442
{txt}{ralign 7:NL} {...}
{c |}{...}
{res}      2010      .361      .284      .354      .411      .401       .32
{txt}{ralign 7:PT} {...}
{c |}{...}
{res}      2009      .479      .349      .324      .377       .33       .27
{txt}{ralign 7:SE} {...}
{c |}{...}
{res}      2010      .436      .344      .388      .493      .486       .45
{txt}{hline 8}{c BT}{hline 70}

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\k1801607\Dropbox\New_politicization\RR_PSRM_replica\session_output.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}30 Jun 2019, 11:24:57
{txt}{.-}
{smcl}
{txt}{sf}{ul off}